package com.zx.system.block.dao;

import com.zx.system.block.model.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysMenuMapper {
    int deleteByPrimaryKey(@Param("id") String id);

    int insert(SysMenu row);

    int insertSelective(SysMenu row);

    SysMenu selectByPrimaryKey(@Param("id") String id);

    int updateByPrimaryKeySelective(SysMenu row);

    int updateByPrimaryKey(SysMenu row);

    List<SysMenu> selectMenuTreeAll(@Param("tenantId") String tenantId);

    List<SysMenu> selectMenuTreeByUserId(@Param("userId") String userId);

    List<SysMenu> selectSysMenuList(SysMenu row);

    List<SysMenu> selectSysMenuByParentId(@Param("parentId") String parentId);

    List<SysMenu> selectMenuIdsByRoleId(@Param("roleId") String roleId);

    List<SysMenu> selectSysMenuByUserId(@Param("userId") String userId);
}